import {Injectable} from '@angular/core';
import {BaseService} from '@core/utils/BaseRequest';
import {NHttpClinet} from '@core/utils/http.client';
import {TableFiled} from '@core/interfaces/table.interface';

@Injectable()
export class TestRecordService extends BaseService {
  constructor(http: NHttpClinet) {
    super('testrecord', http);
  }

  /**
   * 获取列表表头
   * @returns {TableFiled[]}
   */
  getTableHeader(): TableFiled[] {
    return [
      {
        field: 'testRecordId',
        text: '结果记录Id'
      },
      {
        field: 'username',
        text: '答题人员名称',
      },
      {
        field: 'createTime',
        text: '答题时间'
      },
      {
        field: 'result',
        text: '答题结果'
      },
      {
        text: '操作',
        type: 2
      }
    ];
  }
}
